import React from 'react'
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from '../screens/HomePage'
import RegisterScreen from '../screens/HomePage/RegisterPage'
import DoctorScreen from '../screens/HomePage/DoctorPage'
import MedicantScreen from '../screens/HomePage/MedicantPage'

const Stack = createNativeStackNavigator();

export default function HomeStack() {
  return (
    <Stack.Navigator initialRouteName="HomePage">
      <Stack.Screen name="HomePage" component={HomeScreen} options={{ title: '某医院门诊诊疗系统', headerBackVisible: false }} />
      <Stack.Screen name="RegisterPage" component={RegisterScreen} options={{ title: '预约挂号'}} />
      <Stack.Screen name="DoctorPage" component={DoctorScreen} options={{ title: '医生查询'}} />
      <Stack.Screen name="MedicantPage" component={MedicantScreen} options={{ title: '药品查询'}} />
    </Stack.Navigator>
  );
}